package com.mickey.service;

import com.mickey.domain.MiaoshaUser;
import com.mickey.domain.OrderInfo;
import com.mickey.vo.GoodsVO;

import java.awt.image.BufferedImage;

public interface MiaoshaService {
    OrderInfo miaosha(MiaoshaUser user, GoodsVO good);

    long getMiaoshaResult(Long id, long goodsId);

    boolean checkPath(MiaoshaUser user, long goodsId, String path);

    boolean checkVerifyCode(MiaoshaUser user, long goodsId, int verifyCode);

    String createMiaoshaPath(MiaoshaUser user, long goodsId);

    BufferedImage createVerifyCode(MiaoshaUser user, long goodsId);
}
